//
//  AppDelegate.m
//  OMCEasyARApp
//
//  Created by Liu Guocheng on 2018/4/20.
//  Copyright © 2018年 Sumavision. All rights reserved.
//

#import "AppDelegate.h"
#import <easyar/engine.oc.h>

NSString * key = @"NfpmdVyPnYDC0Kpk73XED3Zyz5DMD7R5Atf69Oo19rjzxSsE7n893Wb1UsBBFMEeYEPFpvoqbzMxo9ts5qu0e3O0ZtgWOVs3TxOHVxo7q1FEpEJYWZ3t0309HvFXO3y9eWHdMWeBGtffkU03p1eMfm9raIG8UvBq1pmMymDgwuBbuo01peahPx4nEXlTN2hbmXHxk7i2";

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    if (![easyar_Engine initialize:key]) {
        NSLog(@"Initialization Failed.");
    }
    return YES;
}


- (void)applicationWillResignActive:(UIApplication *)application {
    [easyar_Engine onPause];
}


- (void)applicationDidEnterBackground:(UIApplication *)application {
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}


- (void)applicationWillEnterForeground:(UIApplication *)application {
    // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}


- (void)applicationDidBecomeActive:(UIApplication *)application {
    [easyar_Engine onResume];
}


- (void)applicationWillTerminate:(UIApplication *)application {
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}


@end
